Loop (while)
Example (Step 4)
Julien is buying a house
. If
Julien wanted to buy the
house without taking a loan
from the bank, he would have
to wait until he had enough
money to buy the house.
Problem solving sequence:
1.
Algorithm
2.
Pseudo-code
3.
Block diagram
4.
C/C++ code
while (my_money < cost_of_house)
work_more();
buy_house();